﻿<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:rs="urn:schemas-microsoft-com:rowset"
xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
xmlns:z="#RowsetSchema">
	<xsl:template match="/">
		
		<link rel="stylesheet" type="text/css" href="/Style Library/EnhancedCQWP/Css/Rollups.css" title="Style">
			<xsl:comment>Comment added so script is recognised</xsl:comment>
		</link>
		
		<script src="/Style Library/EnhancedCQWP/Javascript/LimitTo10.js">
			<xsl:comment>Comment added so script is recognised</xsl:comment>
		</script>
		
		<div class="ECRollup">
			<ul class="ECGroup">
				<xsl:if test="count(/Pages/Page) = 0">
					<div>
						0 items.
					</div>
				</xsl:if>

				<xsl:for-each select="/Pages/Page">
					<xsl:sort select="@LastModifiedDate" order="descending"/>

					<xsl:if test="position() &lt; 10">
						<li>
							<div class="actualiteitItem">
								<span class="dateString">
									<xsl:value-of select="ddwrt:FormatDateTime(string(@LastModifiedDate) ,1043,'d MMM yyyy')" />
								</span>
								<br/>
								<a class="titleLink">
									<xsl:attribute name="href">
										<xsl:value-of select="@AbsolutePath"/>
									</xsl:attribute>

									<xsl:value-of select="@Title" />
								</a>
							</div>
						</li>
					</xsl:if>
				</xsl:for-each>
			</ul>
		</div>
	</xsl:template>
</xsl:stylesheet>
